use moss_expand::derive::syn_parse::expand;
use moss_macro::SynParse;
use syn::{parse_quote, DeriveInput};

#[test]
fn name_value() {
    #[derive(SynParse)]
    pub struct Student {
        pub _name: Option<String>,
        pub _age: i32,
    }

    let input: DeriveInput = parse_quote! {
        pub struct Student {
            pub _name: Option<String>,
            pub _age: i32,
        }
    };

    let token = expand(&input).unwrap();
    println!("{}", token);
}
